package formin.powerbar.data;

import java.util.ArrayList;

public class PlugCollection {

	private ArrayList<Plug> plugs;
	private int length;
	
	
	public PlugCollection(int size){
		length = size;
		plugs = new ArrayList<Plug>();
		for (int i = 0; i < length; i++) {
			plugs.add(new Plug(i));
		}	
	}
	
	public Plug getPlug(int plugNumb){
		return plugs.get(plugNumb);
	}
	public int getLength(){
		return length;
	}
}
